package com.enjoyor.soa.traffic.api.tvs.service.dubbo;

public interface TvsCallbackService {

    /***
     * 
     * @Title: addListener @Description: 订阅交通状态数据接口 @param key @param
     * listener @throws
     */
    void addListener(String key, TvsCallbackListener listener);

    /***
     * 
     * @Title: addListenerEx @Description: 订阅交通指数数据接口 @param key @param
     * listener @throws
     */
    void addListenerEx(String key, TvsCallbackListener listener);

    void notifyListener(Object obj);

    /***
     * 
     * @Title: getHeartBeat @Description: 心跳检测 @param key @return @throws
     */
    boolean getHeartBeat(String key);
}
